package io;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class PermutationReader {
	private BufferedReader reader;

	public PermutationReader(InputStream input) throws IOException {
		 reader = new BufferedReader(new InputStreamReader(input));		
	}
	
	public String getNext() throws IOException{
		return reader.readLine() ;
	}
	
	public void close() throws IOException{
		reader.close();
	}
}
